use track_waypt_count instead of route_waypt_count
authorparkrrrr <parkrrrr@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Thu, 27 Apr 2006 12:58:21 +0000 (12:58 +0000)
committerparkrrrr <parkrrrr@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Thu, 27 Apr 2006 12:58:21 +0000 (12:58 +0000)
gpsbabel/shape.c

index 28e9a1ba75ad50efc6fb8d763c701cd9d79005fa..5084f58d82ced9f48c2f40df5b8c0c43ba671650 100644 (file)
@@ -239,7 +239,7 @@ my_write_wpt(const waypoint *wpt)
 void
 poly_init(const route_head *h)
 {
-       int ct = route_waypt_count();
+       int ct = track_waypt_count();
        polybufx = xcalloc(ct, sizeof(double));
        polybufy = xcalloc(ct, sizeof(double));
        polybufz = xcalloc(ct, sizeof(double));
@@ -259,7 +259,7 @@ void
 poly_deinit(const route_head *h)
 {
        SHPObject *shpobject;
-       shpobject = SHPCreateSimpleObject(SHPT_ARC, route_waypt_count(), 
+       shpobject = SHPCreateSimpleObject(SHPT_ARC, track_waypt_count(), 
                        polybufx, polybufy, polybufz);
        SHPWriteObject(ohandle, -1,  shpobject);
        SHPDestroyObject(shpobject);